package com.chinasoft.hm_router_master;

import com.chinasoft.hm_router_master.interceptors.LoginInterceptor;
import com.chinasoft.hm_router_master.slice.UserAbilitySlice;
import com.lzh.nonview.router.anno.RouteInterceptors;
import com.lzh.nonview.router.anno.RouterRule;
/**
 * 动作
 *
 * @author:wjt
 * @since 2021-03-20
 */

import ohos.aafwk.content.Intent;

/**
 * 用户信息展示的能力
 *
 * @author wjt
 * @since 2021-03-20
 */

@RouteInterceptors(LoginInterceptor.class)// 指定所有往此页面跳转的路由，均要进行登录检查
@RouterRule("user-info")
public class UserAbility extends BaseAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(UserAbilitySlice.class.getName());
    }
}
